<template>
    <div class="dispatch-title">
        <div class="dispatch-early-warning">调度预警</div>
        <div class="dispatch-content">
            <!--<div class="dispatch-list" v-for="item in navList">-->
                <!--<div class="dispatch-list-img">-->
                    <!--<img :src="item.src" alt="" style="width: 53px;">-->
                <!--</div>-->
                <!--<div style="text-align: center;width: 50%;padding-top: 10px">-->
                    <!--<div class="title">{{item.title}}</div>-->
                    <!--<div class="num">{{item.num}}</div>-->
                <!--</div>-->
            <!--</div>-->
            <div class="dispatch-list">
                <div class="dispatch-list-img">
                    <img :src="allimg" alt="" style="width: 53px;">
                </div>
                <div style="text-align: center;width: 50%;padding-top: 10px">
                    <div class="title">所有预警</div>
                    <div class="num">{{dataList.all_waring}}</div>
                </div>

            </div>
            <div class="dispatch-list">
                <div class="dispatch-list-img">
                    <img :src="lianimg" alt="" style="width: 53px;">
                </div>
                <div style="text-align: center;width: 50%;padding-top: 10px">
                    <div class="title">联系超时</div>
                    <div class="num">{{dataList.contact_timeout}}</div>
                </div>

            </div>
            <div class="dispatch-list">
                <div class="dispatch-list-img">
                    <img :src="chaoimg" alt="" style="width: 53px;">
                </div>
                <div style="text-align: center;width: 50%;padding-top: 10px">
                    <div class="title">指派超时</div>
                    <div class="num">{{dataList.dispatch_timeout}}</div>
                </div>

            </div>
            <div class="dispatch-list">
                <div class="dispatch-list-img">
                    <img :src="quimg" alt="" style="width: 53px;">
                </div>
                <div style="text-align: center;width: 50%;padding-top: 10px">
                    <div class="title">取件超时</div>
                    <div class="num">{{dataList.pick_timeout}}</div>
                </div>

            </div>
            <div class="dispatch-list">
                <div class="dispatch-list-img">
                    <img :src="paiimg" alt="" style="width: 53px;">
                </div>
                <div style="text-align: center;width: 50%;padding-top: 10px">
                    <div class="title">派送超时</div>
                    <div class="num">{{dataList.send_timeout}}</div>
                </div>

            </div>
        </div>
    </div>
</template>
<script>
    export default {
        components: {
        },
        props: {
            value: {
                type: Object
            }
        },

        data() {
            return {
                dataList: {},
                allimg: require('../../../../assets/img/suoyouyuj@2x.png'),
                lianimg: require('../../../../assets/img/lianxichaoshi@2x.png'),
                chaoimg: require('../../../../assets/img/zhipaichaoshi@2x.png'),
                quimg: require('../../../../assets/img/qujianchaoshi@2x.png'),
                paiimg: require('../../../../assets/img/paisongxhaoshi@2x.png'),
                // navList: [
                //     {
                //         title: '所有预警',
                //         num: '3000',
                //         src: require('../../../../assets/img/suoyouyuj@2x.png')
                //     },
                //     {
                //         title: '联系超时',
                //         num: '30',
                //         src: require('../../../../assets/img/lianxichaoshi@2x.png')
                //     },
                //     {
                //         title: '指派超时',
                //         num: '30',
                //         src: require('../../../../assets/img/zhipaichaoshi@2x.png')
                //     },
                //     {
                //         title: '取件超时',
                //         num: '30',
                //         src: require('../../../../assets/img/qujianchaoshi@2x.png')
                //     },
                //     {
                //         title: '派送超时',
                //         num: '30',
                //         src: require('../../../../assets/img/paisongxhaoshi@2x.png')
                //     }
                // ]
            }
        },
        watch: {
            value: {
                handler(val){
                    this.dataList = this.value;
                },
                deep: true
            },
            dataList: {
                handler(val){
                    this.$emit('input',this.dataList);
                },
                deep: true
            }
        },
        mounted() {
        },
        methods: {}
    }
</script>
<style lang="less" scoped>
.dispatch-title{
    background-color: #fff;
    padding-right: 16px;
        .dispatch-early-warning{
            box-sizing: border-box;
            font-size: 16px;
            padding:10px 0 6px 16px;
            margin-bottom: 2px;
            background-color: #fff;
            border-bottom: 2px solid #f4f4f4;
        }
    .dispatch-content{
        padding:34px 0 26px 16px;
        overflow:hidden;
        display: flex;
        justify-content: space-between;
        .dispatch-list{
            box-sizing: border-box;
            width:212px;
            height: 90px;
            border-radius:4px;
            margin-bottom: 20px;
            border:2px solid rgba(251,168,5,1);
            display: flex;
            .dispatch-list-img{
                display: flex;
                justify-content: center;
                align-items: center;
                width: 50%;
            }
            .title{
                font-size: 12px;

            }
            .num{
                font-size:30px;
                color:rgba(0,0,0,1);
                padding-top: 6px;
                line-height: 42px;
            }
        }
    }

}
</style>

